import React from 'react';
export default class ShouldNotUpdated extends React.Component {
    constructor(props) {
        super(props);
        this.state = {
            value: ''
        };
        this.inputValueChanged = this.inputValueChanged.bind(this);
    }

    inputValueChanged(e) {
        console.log(e.target.value)
        this.setState({value: e.target.value});
    }

    render() {
        return (
            <>
              <input value={this.state.value} onChange={this.inputValueChanged}/>
            </>
        )
    }

    shouldComponentUpdate(nextProps, nextState) {
        return false;
    }

}